package com.winit.schedule.core.repository.constants;

import java.util.Arrays;
import java.util.List;

public enum TaskItemStatus {
    INACTIVIE, PUSH, ACTIVIE, COMPLETE, STOP;

    /**
     * 任务未被分配执行的状态
     */
    public static List<TaskItemStatus> ALLOW_PUSH_STATUS = Arrays.asList(new TaskItemStatus[] {
            TaskItemStatus.INACTIVIE, TaskItemStatus.COMPLETE, TaskItemStatus.STOP });

    /**
     * 任务可能的运行状态
     */
    public static List<TaskItemStatus> RUN_STATUS        = Arrays.asList(new TaskItemStatus[] { TaskItemStatus.PUSH,
            TaskItemStatus.ACTIVIE                      });
}
